package cn.school.dao;

import java.sql.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.shcool.entity.Student;

public interface StudentDao {
	public Student getStuno(int stuno);

	public int add(Student s);

	public int del(long stuno);

	public int update(Student s);

	List<Student> findall();

	public List<Student> search(Map<String, Object> prames);

	public List<Student> mh(@Param("sname") String sname,
			@Param("qq") String qq, @Param("wechat") String wechat);

	public int batchdel(@Param("ids") long[] ids);

	public List<Student> search3(@Param("ageFanwei") int ageType);

	public List<Student> search2(@Param("sname") String sname,
			@Param("qq") String qq, @Param("wechat") String wechat,
			@Param("enterdate") Date enterdate);

	// 根据这几个查询条件，查询总条数
	public int searchTotal(@Param("name") String name,
			@Param("tele") String tele,
			@Param("enterStart") Date enterDateStart,
			@Param("enterEnd") Date enterEnd);

}